<!DOCTYPE>
<!-- saved from url=(0060)http://127.0.0.1/dede/login.php?gotopage=%2Fdede%2Findex.php -->
<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>天能物业登录</title>
    <link type="text/css" rel="stylesheet" href="css/logins.css">
    <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="js/login.js"></script>
</head>
<style>
    a:hover {text-decoration: none;}
    .sel_btn{
        height: 25px;
        line-height: 25px;
        padding: 0 11px;
        background: #02bafa;
        border: 1px #26bbdb solid;
        border-radius: 5px;
        /*color: #fff;*/
        display: inline-block;
        text-decoration: none;
        font-size: 12px;
        outline: none;
    }
    .ch_cls{
        background: #e4e4e4;
    }
</style>
<body style="overflow:hidden">

    <div class="pagewrap">
        <div class="main">
            <div class="header"></div>
            <div class="content">
            <div class="con_left"></div>
                <div class="con_right">
                    <div class="con_r_top"><a href="javascript:;" class="left" style="color: rgb(153, 153, 153); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(222, 222, 222);">关注我们</a> <a href="javascript:;" class="right" style="color: rgb(51, 51, 51); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(46, 85, 142);">登录管理</a></div>
                    <ul>
                        <li class="con_r_left" style="display: none;">
                            <div class="erweima">
                                <div class="qrcode">
                                    <div id="output" style="width: 100%; position: relative">
                                        <img src="img/weixin.jpg" style="width: 174px; height: 174px"></div>
                                </div>
                             </div>
                            <div style="height: 70px">
                                <p>微信扫码 安全便捷</p>
                            </div>
                        </li>
						
						
                        <li class="con_r_right" style="display: block;">
                           <form name="form1" method="post" action="GonggaoLogining" autocomplete="off">
                 <div class="user">
                        <div><span class="user-icon"></span>
                            <input type="text" id="UserPhone" name="phone" placeholder="　输入电话号码" value="">
					    </div>
						 <div><span class="yzmz-icon"></span>
                            <input  type="text" id="YZM" name="yzm" placeholder="　验证码" value="" style=" width:150px;">　
                            <a class="sel_btn ch_cls" th:text="获取验证码" type="button" id="Yanzm"></a>
                        </div>
						                                
                   </div><br>
                        <button id="btn_Login" type="submit">登 录</button>
                        <p></p>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                               <p type="text" style="color: red" th:text="${msg}"></p>
				</form>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

<script>
    $(function () {
        $("#Yanzm").click(function () {
            if($("#UserPhone").val()!=null && $("#UserPhone").val()!= ""){
                var phone =  $("#UserPhone").val();
                $.post("CheckPhone","phone="+phone,function(date){
                    if(date=="true"){
                        alert("验证码发送成功！")
                        return false;
                    }else{
                        alert("验证码发送失败。")
                    }
                });
            }else {
                alert("请输入电话号码！")
                return false;
            }
        })
    })
</script>
</body>
</html>